import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * Created by wsk1103 on 2017/12/4.
 */
public class Provider {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("provider.xml");
        System.out.println(context.getBean("demoService") + ": here");
//        DemoService demoService = (DemoService) context.getBean("demoService");
//        demoService.getPermissions(222).stream().forEach(System.out::println);
        context.start();
        System.out.println("run...............");
        try {
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
